package cn.javass.dp.decorator.example6;

/**
 * 装饰器接口
 */
public abstract class Decorator implements GoodsSaleEbi {

    /**
     * 持有被装饰的组件对象
     */
    protected GoodsSaleEbi ebi;

    /**
     * 通过构造方法传入需要被装饰的对象
     * @param ebi
     */
    public Decorator(GoodsSaleEbi ebi) {
        this.ebi = ebi;
    }
}
